<%-- 
    Document   : InterfaceAluno
    Created on : 27/09/2012, 17:11:36
    Author     : pfjava
--%>
<%  String usuariolog = (String)session.getAttribute("usuario");
	if(usuariolog != null){
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Aluno</title>
        <link  href="css/geral.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" href="favicon.ico" />
    </head>
    <body>
        <div id="tudo">
            
            <div id="cabecalho">
                
            </div>
            
            <div id="menu">
                <jsp:include page="menuprincipal.jsp"></jsp:include>
            </div>
                  
            <div id="principal">
                 
                <form action="manterUsuario.jsp" method="post">
                    <table border="0" align="center">
                        <tbody>
                            <thead>
                                <tr>
                                    <th>Usuario</th>
                                    <th>Senha</th>
                                    <th>Nivel</th>
                                </tr>
                            </thead>
                        <tr>
                            <td><input type="text" name="usuario"/></td>
                            <td><input type="password" name="senha"/></td>
                            <td>
                                <select name="nivel">
                                    <option value=""></option>
                                    <option value="Aluno">Aluno</option>
                                    <option value="Professor">Professor</option>
                                    <option value="Supervisor">Supervisor</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" align="center">
                                <input type="hidden" name="ac" value="adicionar"/>
                                <input type="submit" value="Cadastrar"/>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </body>
</html>

<% }else{
	request.getRequestDispatcher("index.jsp").forward(request, response);
};%>